package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysReceiptInfoMapper;
import com.ruoyi.system.domain.SysReceiptInfo;
import com.ruoyi.system.service.ISysReceiptInfoService;

/**
 * 收货地址信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-27
 */
@Service
public class SysReceiptInfoServiceImpl implements ISysReceiptInfoService 
{
    @Autowired
    private SysReceiptInfoMapper sysReceiptInfoMapper;

    /**
     * 查询收货地址信息
     * 
     * @param receiptInfoId 收货地址信息主键
     * @return 收货地址信息
     */
    @Override
    public SysReceiptInfo selectSysReceiptInfoByReceiptInfoId(Long receiptInfoId)
    {
        return sysReceiptInfoMapper.selectSysReceiptInfoByReceiptInfoId(receiptInfoId);
    }

    /**
     * 查询收货地址信息列表
     * 
     * @param sysReceiptInfo 收货地址信息
     * @return 收货地址信息
     */
    @Override
    public List<SysReceiptInfo> selectSysReceiptInfoList(SysReceiptInfo sysReceiptInfo)
    {
        return sysReceiptInfoMapper.selectSysReceiptInfoList(sysReceiptInfo);
    }

    /**
     * 新增收货地址信息
     * 
     * @param sysReceiptInfo 收货地址信息
     * @return 结果
     */
    @Override
    public int insertSysReceiptInfo(SysReceiptInfo sysReceiptInfo)
    {
        return sysReceiptInfoMapper.insertSysReceiptInfo(sysReceiptInfo);
    }

    /**
     * 修改收货地址信息
     * 
     * @param sysReceiptInfo 收货地址信息
     * @return 结果
     */
    @Override
    public int updateSysReceiptInfo(SysReceiptInfo sysReceiptInfo)
    {
        return sysReceiptInfoMapper.updateSysReceiptInfo(sysReceiptInfo);
    }

    /**
     * 批量删除收货地址信息
     * 
     * @param receiptInfoIds 需要删除的收货地址信息主键
     * @return 结果
     */
    @Override
    public int deleteSysReceiptInfoByReceiptInfoIds(Long[] receiptInfoIds)
    {
        return sysReceiptInfoMapper.deleteSysReceiptInfoByReceiptInfoIds(receiptInfoIds);
    }

    /**
     * 删除收货地址信息信息
     * 
     * @param receiptInfoId 收货地址信息主键
     * @return 结果
     */
    @Override
    public int deleteSysReceiptInfoByReceiptInfoId(Long receiptInfoId)
    {
        return sysReceiptInfoMapper.deleteSysReceiptInfoByReceiptInfoId(receiptInfoId);
    }
}
